package cn.edu.scau.cmi.pengjiajian.spring.util;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class ApplicationContextUtil {
	static ApplicationContext applicationContext;
	public static ApplicationContext getApplicationContext() {
		if(applicationContext == null) {
			String xmlPath = "cn/edu/scau/cmi/panbaoyu/spring/util/applicationContext.xml";
			applicationContext = new ClassPathXmlApplicationContext(xmlPath);
		}
		return applicationContext;
		
	}
}
